﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PalFramework.Template;

namespace PalBattleEmulator.Object.Unit
{
    public class EnemyFactory
    {
        public static Enemy Create(int id)
        {
            Enemy enemy = new Enemy();
            IEnemyTmpl tmpl = ContextModules.EnemyTmplManager.GetTmpl(id);
            enemy.Template = tmpl;
            enemy.Sprite = tmpl.Sprite;
            return enemy;
        }
    }
}
